home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: 500 MB Amiga Software / 500 MB Amiga Software - Euber 130 - Amiga Games Disc & Mag.iso / userbox / publicdomain / tinymeter / install < prev    next >
Text File  |  1995-11-08  |  5KB  |  194 lines

  1. ; Installer Script for TinyMeter V3.4
  2.  
  3. (set @default-dest (""))
  4.  
  5. (set @cpu (database "cpu"))
  6.  
  7. (set @source-file "TinyMeter")
  8.  
  9. (if (= @cpu "68020")
  10.     (set @source-file "TinyMeter.020")
  11. )
  12.  
  13. (if (= @cpu "68030")
  14.     (set @source-file "TinyMeter.020")
  15. )
  16.  
  17. (if (= @cpu "68040")
  18.     (set @source-file "TinyMeter.020")
  19. )
  20.  
  21. (if (= @cpu "68060")
  22.     (set @source-file "TinyMeter.020")
  23. )
  24.  
  25. (set @destdir
  26.         (askdir
  27.                 (prompt "Where should I copy the TinyMeter main program ?")
  28.                 (help "SYS:WBStartup is the best place. Simply click proceed.")
  29.                 (default "SYS:WBStartup/")
  30.         )
  31. )
  32.  
  33. (set @prefsdir
  34.         (askdir
  35.                 (prompt "Where should I copy the TinyMeterPrefs program?")
  36.                 (help "SYS:Prefs is the best place, since TinyMeter can only call it, when its there.")
  37.                 (default "SYS:Prefs/")
  38.         )
  39. )
  40.  
  41. (set @NewIcons
  42.         (askbool
  43.                 (prompt "Do you use NewIcons® ?")
  44.                 (help "NewIcons® is a new icon-system with colorful icons. This script installs special icons for use with it.")
  45.         )
  46. )
  47.  
  48. (set @CopyExample
  49.         (askbool
  50.                 (prompt "Do you want to install the example MagicWB-settings file?\n\nNOTE: You will have to install the additional fonts and the background pictures. Make sure you install the background pattern in SYS:Prefs/Patterns/ !!!")
  51.                 (help "Its an example setting. It uses Leater as background and all supplied font.")
  52.         )
  53. )
  54.  
  55. (set @CopyFonts
  56.         (askbool
  57.                 (prompt "Do you want to install the additional Fonts?\n(NOTE: The fonts have changed in version 3.6!)")
  58.                 (help "The additional Font:\n 1. TinyMeter_DIGITAL (for the clock and the date)\n 2. TinyMeter_DIGITAL_Med (for med-res resolutions)\n 3. XHelvetica (standard XEN-Font)")
  59.         )
  60. )
  61.  
  62. (if @CopyFonts
  63.     (set @fontdir
  64.             (askdir
  65.                     (prompt "Where should the fonts be installed?")
  66.                     (help "FONTS: is the best place. Simply click proceed.")
  67.                     (default "FONTS:")
  68.             )
  69.     )
  70. )
  71.  
  72. (if @CopyFonts
  73.     (set @dofixfont
  74.             (askbool
  75.                     (prompt "Should I do FixFonts for you?")
  76.                     (help "This is not important. Simply click no.")
  77.             )
  78.     )
  79. )
  80.  
  81. (set @CopyPatt
  82.         (askbool
  83.                 (prompt "Do you want to install the additional Background patterns?")
  84.                 (help "Backgrounds:\n1. BLUE_Leater (nice background using RomIcons-palette\n2. Leather (standard MagicWB-pattern)\n3. Sand (standard MagicWB-patterm)")
  85.         )
  86. )
  87.  
  88. (if @CopyPatt
  89.     (set @pattdir
  90.             (askdir
  91.                     (prompt "Where should the background patterns be installed?\n (example settings-file uses SYS:Prefs/Patterns!)")
  92.                     (help "SYS:Prefs/Patterns is the best place.")
  93.                     (default "SYS:Prefs/")
  94.             )
  95.     )
  96. )
  97.  
  98. (copyfiles
  99.         (prompt "Installing the files." )
  100.         (help "Where's the problem?" )
  101.         (source @source-file )
  102.         (infos)
  103.         (newname "TinyMeter")
  104.         (dest @destdir)
  105. )
  106.  
  107. (copyfiles
  108.         (prompt "Installing TinyMeter.")
  109.         (help "Where's the problem?")
  110.         (source "Prefs/TinyMeterPrefs")
  111.         (infos)
  112.         (newname "TinyMeterPrefs")
  113.         (dest @prefsdir)
  114. )
  115.  
  116. (if @NewIcons
  117.         (copyfiles
  118.                 (prompt "Installing NewIcons")
  119.                 (help "Where's the problem?")
  120.                 (source "ArtWork/newicons/TinyMeter.info")
  121.                 (dest @destdir)
  122.         )
  123. )
  124.  
  125. (if @NewIcons
  126.         (copyfiles
  127.                 (prompt "Installing NewIcons")
  128.                 (help "Where's the problem?")
  129.                 (source "ArtWork/newicons/TinyMeterPrefs.info")
  130.                 (dest @prefsdir)
  131.         )
  132. )
  133.  
  134. (if @CopyExample
  135.     (copyfiles
  136.             (prompt "Installing example settings-file in ENV:")
  137.             (help "Where's the problem?")
  138.             (source "Env/")
  139.             (all)
  140.             (dest "ENV:")
  141.     )
  142. )
  143.  
  144. (if @CopyExample
  145.     (copyfiles
  146.             (prompt "Installing example settings-file in ENVARC:")
  147.             (help "Where's the problem?")
  148.             (source "Env/")
  149.             (all)
  150.             (dest "ENVARC:")
  151.     )
  152. )
  153.  
  154. (if @CopyFonts
  155.     (copyfiles
  156.             (prompt "Installing additional fonts.")
  157.             (help "Where's the problem?")
  158.             (source "ArtWork/Fonts/")
  159.             (all)
  160.             (dest @fontdir)
  161.     )
  162. )
  163.  
  164. (if @CopyFonts
  165.     (if @dofixfont
  166.             (run "SYS:System/FixFonts"
  167.                     (prompt "Doing FixFonts... May take a while...")
  168.                     (help "Where's the problem?")
  169.             )
  170.     )
  171. )
  172.  
  173. (if @CopyPatt
  174.     (copyfiles
  175.             (prompt "Installing additional background patterns.")
  176.             (help "Where's the problem?")
  177.             (source "ArtWork/Patterns/")
  178.             (all)
  179.             (dest @pattdir)
  180.     )
  181. )
  182.  
  183. (copylib
  184.         (prompt "Installing screennotify.library")
  185.         (help "Where's the problem?")
  186.         (source "Libs/screennotify.library")
  187.         (dest "LIBS:")
  188.         (confirm)
  189. )
  190.  
  191. (exit
  192.         "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start TinyMeterPrefs to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!"
  193. )
  194.